package com.yuw;

public class Teacher {
    // 属性
    private String teaName;
    private int teaAge;

    // 行为
    public void doTeaching() {
        //System.out.println("现在开始执行doXXX方法了。。。。。。");

        System.out.println("I am teaching...");

        //System.out.println("现在结束执行doXXX方法了。。。。。。");
    }

    /**
     * 游戏行为
     */
    public void doPalying(){
        System.out.println(" I am do playing...");
    }
    public String getTeaName() {
        return teaName;
    }

    public void setTeaName(String teaName) {
        this.teaName = teaName;
    }

    public int getTeaAge() {
        return teaAge;
    }

    public void setTeaAge(int teaAge) {
        this.teaAge = teaAge;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "teaName='" + teaName + '\'' +
                ", teaAge=" + teaAge +
                '}';
    }
}
